package day20161023;

import org.junit.Test;

public class SendTest {
	
	@Test
	public void test(){
		//指定发送的主机smtp.qq.com
		 String host = "smtp.163.com";
		//收件人电子邮箱
		 String to = "593455003@qq.com";
		//发件人电子邮箱
		 String from = "15818245636@163.com";
		 //发送人密码
		 String pw="jim12345";
		 //标题
		 String subject="什么都可以";
		 //内容
		 String content="你若安好，便是晴天！";
		SendEmail send = new SendEmail();
		for(int i=0;i<2;i++){
			send.sendemail(host,to,from,pw,subject,content);
			
		}
	}

}
